import java.io.*;
public class testmain3 {
    public static void main(String[] args) throws  Exception{
        StringBuffer buffer =new StringBuffer();
        File f=new File("D:"+File.separator+"muyan"+File.separator+"vip"+File.separator+"yootk.com");
        if(f.exists()){
            try(InputStream input =new FileInputStream(f)){
                byte data[]=new byte[8];
                int len=0;
                while ((len=input.read(data))!=-1){
                    buffer.append(new String(data,0,len));
                }
                System.out.println("读取到的数据内容【"+buffer+"】");
            }catch (Exception e){
            }
        }
    }
}
